﻿<phone:PhoneApplicationPage 
    x:Class="TodayHumor.Write"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="800" d:DesignWidth="480">

    <!--LayoutRoot는 모든 페이지 내용이 배치되는 루트 표입니다.-->
    <Grid x:Name="LayoutRoot" Background="Transparent" Language="ko-kr">
        <Grid Height="{StaticResource TopTitleHeaderHeight}" Margin="0" Background="{StaticResource PhoneAccentBrush}" VerticalAlignment="Top">
            <TextBlock Text="글쓰기" x:Name="TopTitleTB" Style="{StaticResource TopTitleContentStyle}"/>
        </Grid>

        <StackPanel x:Name="ContentPanel" Margin="17,50,12,0">
            <toolkit:PhoneTextBox x:Name="WriteTitleTextBox" Hint="제목" Width="470" TextChanged="TextBoxTextChanged"/>
            <toolkit:PhoneTextBox x:Name="WriteContentTextBox" Hint="내용" Width="470" TextChanged="TextBoxTextChanged"
                                  AcceptsReturn="True"/>
            <toolkit:PhoneTextBox x:Name="WriteTailTextBox" Hint="꼬릿말" Width="470" TextChanged="TextBoxTextChanged"
                                  AcceptsReturn="True"/>
        </StackPanel>
    </Grid>
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar Opacity=".8">
            <shell:ApplicationBar.Buttons>
                <shell:ApplicationBarIconButton IconUri="Images/Icons/check.png" Text="글쓰기" Click="WriteBtnClick"/>
                <shell:ApplicationBarIconButton IconUri="Images/Icons/close.png" Text="뒤로" Click="BackBtnClick"/>
            </shell:ApplicationBar.Buttons>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>
</phone:PhoneApplicationPage>
